package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.OrderTransDao;
import io.wdb.modules.generator.generator.entity.OrderTransEntity;
import io.wdb.modules.generator.generator.service.OrderTransService;



@Service("orderTransService")
public class OrderTransServiceImpl implements OrderTransService {
	@Autowired
	private OrderTransDao orderTransDao;
	
	@Override
	public OrderTransEntity queryObject(Long id){
		return orderTransDao.queryObject(id);
	}
	
	@Override
	public List<OrderTransEntity> queryList(Map<String, Object> map){
		return orderTransDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return orderTransDao.queryTotal(map);
	}
	
	@Override
	public void save(OrderTransEntity orderTrans){
		orderTransDao.save(orderTrans);
	}
	
	@Override
	public void update(OrderTransEntity orderTrans){
		orderTransDao.update(orderTrans);
	}
	
	@Override
	public void delete(Long id){
		orderTransDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		orderTransDao.deleteBatch(ids);
	}
	
}
